// 自动生成模板UndoLog
package biz

import (
	"time"

	"github.com/go-kratos/kratos/v2/log"
)

// undoLog表 结构体  UndoLog
type UndoLog struct {
	Id           *int       `json:"id" form:"id" gorm:"primarykey;column:id;size:19;"`             //id字段
	BranchId     *int       `json:"branchId" form:"branchId" gorm:"column:branch_id;size:19;"`     //branchId字段
	Xid          *string    `json:"xid" form:"xid" gorm:"column:xid;size:100;"`                    //xid字段
	Context      *string    `json:"context" form:"context" gorm:"column:context;size:128;"`        //context字段
	RollbackInfo *string    `json:"rollbackInfo" form:"rollbackInfo" gorm:"column:rollback_info;"` //rollbackInfo字段
	LogStatus    *int       `json:"logStatus" form:"logStatus" gorm:"column:log_status;size:10;"`  //logStatus字段
	LogCreated   *time.Time `json:"logCreated" form:"logCreated" gorm:"column:log_created;"`       //logCreated字段
	LogModified  *time.Time `json:"logModified" form:"logModified" gorm:"column:log_modified;"`    //logModified字段
	Ext          *string    `json:"ext" form:"ext" gorm:"column:ext;size:100;"`                    //ext字段
}

// TableName undoLog表 UndoLog自定义表名 undo_log
func (UndoLog) TableName() string {
	return "undo_log"
}

type UndoLogRepo interface {
}

type UndoLogUsecase struct {
	repo UndoLogRepo
	log  *log.Helper
}

func NewUndoLogUsecase(repo GreeterRepo, logger log.Logger) *UndoLogUsecase {
	return &UndoLogUsecase{repo: repo, log: log.NewHelper(logger)}
}
